\section{model::client Class Reference}
\label{classmodel_1_1client}\index{model::client@{model::client}}
This class represents a music-client.  


{\tt \#include $<$client.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{client} ()\label{classmodel_1_1client_a432d7821521a6e1357b4a18a35eff1e}

\item 
\bf{client} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em client creates a client from an dom-node \item\end{CompactList}\item 
\bf{client} (const string \&n, const list$<$ \bf{model::interpreter} $>$ \&i)
\begin{CompactList}\small\item\em client creates a client. \item\end{CompactList}\item 
\bf{$\sim$client} ()\label{classmodel_1_1client_8b020cde75de554285d55b29e5bb15cb}

\item 
void \bf{parse} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em parse parses a dom-tree to a client \item\end{CompactList}\item 
void \bf{set\_\-name} (const string \&n)\label{classmodel_1_1client_aca982b73b88041214e7fb623df7b1e7}

\begin{CompactList}\small\item\em set\_\-name sets the name of the client. \item\end{CompactList}\item 
const string \& \bf{get\_\-name} () const \label{classmodel_1_1client_df1250dac1dea364314751de85b2dc26}

\begin{CompactList}\small\item\em get\_\-name returns the name of the client. \item\end{CompactList}\item 
void \bf{set\_\-interpreters} (const list$<$ \bf{model::interpreter} $>$ i)\label{classmodel_1_1client_c2127f7c96fa5ee33121dc78daad1e87}

\begin{CompactList}\small\item\em set\_\-interpreters sets the interpreters of the client \item\end{CompactList}\item 
const list$<$ \bf{model::interpreter} $>$ \& \bf{get\_\-interpreters} () const \label{classmodel_1_1client_b02f65d39431a810879fde598d16b42f}

\begin{CompactList}\small\item\em get\_\-interpreters returns the interpreters of the client \item\end{CompactList}\item 
list$<$ \bf{model::interpreter} $>$ \& \bf{get\_\-interpreters} ()\label{classmodel_1_1client_5d09a7fc170ef8bcbbc59e28199aa33b}

\begin{CompactList}\small\item\em get\_\-interpreters returns the interpreters of the client \item\end{CompactList}\item 
void \bf{print} () const \label{classmodel_1_1client_fd2b3386a3e0b364a6c39d35d522d9fa}

\begin{CompactList}\small\item\em print prints the client. For debug purposes only. \item\end{CompactList}\item 
string \bf{to\_\-xml} () const \label{classmodel_1_1client_b22b6ce2c55f21ab802232fb4ddd672e}

\begin{CompactList}\small\item\em to\_\-xml prints the xml-structure of the client \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents a music-client. 



Definition at line 41 of file client.h.

\subsection{Constructor \& Destructor Documentation}
\index{model::client@{model::client}!client@{client}}
\index{client@{client}!model::client@{model::client}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::client::client (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1client_4c62eeb1e314bb134b8d457f1f732906}


client creates a client from an dom-node 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node from which the client should be created \end{description}
\end{Desc}


Definition at line 3 of file client.cpp.

\begin{Code}\begin{verbatim}4 {
5         parse(node);
6 }
\end{verbatim}\end{Code}


\index{model::client@{model::client}!client@{client}}
\index{client@{client}!model::client@{model::client}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::client::client (const string \& {\em n}, const list$<$ \bf{model::interpreter} $>$ \& {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1client_360cd5e7363dcb2463f8249e8815d6e4}


client creates a client. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em n}]is the name of the client \item[{\em i}]is a list of interpreters, the client should contain \end{description}
\end{Desc}


Definition at line 57 of file client.h.

\begin{Code}\begin{verbatim}58                 : _name(n), _interpreters(i) {}
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{model::client@{model::client}!parse@{parse}}
\index{parse@{parse}!model::client@{model::client}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void model::client::parse (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1client_de598c393d4f1f84003a8522bbc6add4}


parse parses a dom-tree to a client 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the dom-node which should be parsed. \end{description}
\end{Desc}


Definition at line 8 of file client.cpp.

\begin{Code}\begin{verbatim}9 {
10         _name = node.find_attrib("name");
11         boost::shared_ptr<model::dom> ptr(
12                 node.find("interpreter"));
13         while(*ptr) {
14                 _interpreters.push_back(model::interpreter(*ptr));
15                 ptr = ptr->next_tag();
16         }
17 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
model/client.h\item 
model/client.cpp\end{CompactItemize}
